export const formatTime = (time: number) => {
  //时间戳转换为时间
  const date = new Date(time * 1000)
  console.log(date)
  const Y = date.getFullYear()
  const M = date.getMonth() + 1
  const D = date.getDate()
  const h = date.getHours()
  const m = date.getMinutes()
  // const s = date.getSeconds()
  return `${Y}-${M}-${D} ${h}:${m}`
}
